package hy;


import hy.dao.ICourseType;

import hy.entity.CourseType;
import hy.util.Util;
import org.apache.ibatis.session.SqlSession;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import java.util.List;

public class Test1 {
    SqlSession session;

    @Before
    public void init() {
        session = Util.getSession();
    }

    @After
    public void close() {
        // 增删改执行之后必须提交
        session.commit();
        session.close();
    }
    @Test
    public void m1(){
        ICourseType mapper = session.getMapper(ICourseType.class);
        System.out.println(mapper.selectAllTypeById(null));
    }
}